package me.wangshier.pdf;

import java.io.IOException;

public class PDF2Excel {
    public static void main(String[] args) {
        try {
            String pdfPath = "sample.pdf";
            String excelPath = "output.xlsx";

            // 提取图片
            PDFImageExtractor.extractImages(pdfPath);

            // 保存图片到Excel
//            for (int i = 0; i < numberOfImages; i++) {
//                ExcelImageSaver.saveImageToExcel("image" + i + ".png", excelPath);
//            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
